<template>
  <div id="good-user">
    <div class="top">
      <img
        src="https://pic.rmb.bdstatic.com/bjh/99818461a845ef36536d2dba905c64a5.jpeg"
        alt=""
      />
    </div>
    <div class="middle">
      <div class="nickname">@Python</div>
      <div class="user-desc">
        人生苦短，我爱Python人生苦短，我爱Python人生苦短，我爱Python人生苦短，我爱Python人生苦短，我爱Python人生苦短，我爱Python人生苦短，我爱Python人生苦短，我爱Python
      </div>
    </div>
    <div class="bottom">
      <div class="lessons-num">23视频集</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped>
#good-user {
  width: 200px;
  height: 240px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

#good-user:hover {
  box-shadow: 0px 5px 5px #80808020;
}

#good-user .top img {
  width: 100%;
  height: 120px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

#good-user .middle {
  padding: 10px;
}

#good-user .middle .nickname {
  font-weight: bold;
  font-size: 18px;
  line-height: 20px;
  margin-bottom: 10px;
}

#good-user .middle .user-desc {
  font-size: 12px;
  color: #606060;
  line-height: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  max-height: 4em; /* Adjust this value based on your font size and line height */
}

#good-user .bottom {
  display: flex;
  display: -webkit-flex;
  justify-content: end;
  padding: 10px;
  font-size: 14px;
  color: gray;
}
</style>